<?php
if ($_POST['submit'] == 'client_req')
{
	$username = $_POST['uname'];
	
	try {
		$db = new SQLiteDatabase("dummychat.db", 0666, $sqerr);
		$db -> query('UPDATE UserDB SET status=0 WHERE username="'.$username.'"');
	}
	catch (Exception $e) {
		echo "Database";
	}
}